package com.sun.designPattern.Observer.baseImp;

import java.util.Observable;

public class Watched extends Observable {
	private String str;
	private int i = 0;

	public void change(String s) {
		str = s;
		super.setChanged();
		super.notifyObservers(i++);
	}

	public String getInfo() {
		return str;
	}

}
